'''
Created on 2010-4-17

@author: Zizon
'''
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

from com.blogspot.zizon.twitter.CommonApiProxy import CommonApiProxy
from com.blogspot.zizon.twitter.SearchApiProxy import SearchApiProxy
from com.blogspot.zizon.twitter.OauthApiProxy import OauthApiProxy

application = webapp.WSGIApplication([
                                        ('/twitter/trends/.*' , SearchApiProxy),
                                        ('/twitter/search.*' , SearchApiProxy),
                                        ('/twitter/oauth/.*', OauthApiProxy),
                                        ('/twitter/.*', CommonApiProxy)
                                     ],
                                     debug=True)

def main():
    run_wsgi_app(application)

if __name__ == '__main__':
    main();
